import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import java.util.List;

public class ChatAdapter extends BaseAdapter {
    private List<ChatAdapter> chatAdapters;
    private LayoutInflater layoutInflater;
    public ChatAdapter(List<ChatAdapter> chatAdapterList, Context context){
        this.chatAdapters=chatAdapterList;
        layoutInflater=LayoutInflater.from(context);
    }
    @Override
    public int getCount() {
        return chatAdapters.size();
    }

    @Override
    public Object getItem(int i) {
        return chatAdapters.get(i);
    }

    @Override
    public long getItemId(int i) {
        return i;
    }

    @Override
    public View getView(int i, View view, ViewGroup viewGroup) {
        Holder holder=new Holder
        return null;
    }
    class Holder{
        public TextView tv_chat_content;
    }
}
